package com.example.service;

import com.example.pojo.Dept;
import org.springframework.stereotype.Service;

import java.util.List;


public interface DeptService {
    //查询全部部门数据
    List<Dept> list();
    void delete(Integer id) throws Exception;

    void addDept(Dept dept);
    Dept selectById(Integer id);
    void update(Dept dept);
}
